<template>
  <div id="dad">
    <router-view></router-view>
    <!-- <Test/> -->
  </div>
</template>

<script>
import Test from './test.vue'
  export default {
    name: 'Dad',
    data(){
      return{
      }
    },
    components:{Test},
    mounted(){
    },
    watch:{
      $route:{
          handler(newval,oldval){
              // console.log('新路由:',newval.name);
              // console.log('老路由:',oldval.name);
              this.$bus.$emit('newRouterchanged',newval.name,oldval.name)
          },
          deep:true,
      },


    },
  }
</script>

<style>
</style>
